<?php

require_once("dao/DAOFactory.php");
require_once("bizlayer/IBiz.php");

class HoleMgmt  implements IBiz{
	static $dao;
	public static function initializeDao(){
		self::$dao = DAOFactory::getDAO("hole");
	}
	
	public static function searchHoles($holeid,$courseid,$coursename,$holename){
		self::initializeDao();
		return self::$dao->getList($holeid,$courseid,$coursename,$holename,0);
	}
	
	public static function saveHole($hole){
		self::initializeDao();
		return self::$dao->saveItem($hole);
	}
}
?>